package com.banana.manager.forest.dao.chemical;

import com.banana.manager.forest.entity.chemical.OutBean;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface IOutDao extends BaseMapper<OutBean> {

    @Update("update out_info set fk_device_id = #{deviceId} WHERE out_id = #{outId}")
    void confirmDevice(@Param("outId") Integer outId,@Param("deviceId") Integer deviceId);

    @Update("update out_info set fk_disburse_id = #{disburseId} WHERE out_id = #{outId}")
    void addToDisburse(@Param("outId")Integer outId, @Param("disburseId")Integer disburseId);
}
